import 'package:flutter/foundation.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/api/supply_api.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/models/SupplyModel.dart';

class SupplyRepository {
  final SupplyApi supplyApi;
  SupplyRepository({@required this.supplyApi})
      : assert(supplyApi != null),
        super();

  Future<Supply> getSupplyListData(Map<String, dynamic> params) async {
    Supply supply = await supplyApi.getSupplyList(params);
    return supply;
  }
}
